<?php

/*
 * View the news
 * 
 */
//print_r($news);
echo '<div class="news" >';
foreach ($news as $news_item) { ?>
  <a href="news/<?php echo $news_item['slug']; ?>" ><?php echo $news_item['title']; ?> </a>
  <info>by : <?php echo $news_item['author'].'  '.date('d M Y H:i', $news_item['created']->sec).' '; ?> </info>
    <article><?php echo  strip_tags(substr($news_item['article'],0,300)).'  ....' ?></article>
  
<?php } ?>
</div> <!--content-->

<!--$string = substr($string,0,10).'...';-->

